from dpdata import LabeledSystem,MultiSystems,System
import json
j=open("input.json")
data = json.loads(j.read())
j.close()
ms=MultiSystems()
for i in data['training']['systems']:
    ms.append(LabeledSystem(i,fmt='deepmd/npy'))
ms.to_deepmd_npy('deepmd',set_size=ms.get_nframes())
    